Micron Document




Object-oriented programming
part 33/57 · 94.0 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Criticism

Some believe that OOP places too much focus on using objects rather than on algorithms and data structures.cite-ref-stepanov-60-0[60]cite-ref-hickey-61-0[61] For example, programmer Rob Pike pointed out that OOP can make programmers think more about type hierarchy than composition.cite-ref-robpike-62-0[62] He has called OOP "the Roman numerals of computing".cite-ref-63[63] Rich Hickey, creator of Clojure, described OOP as overly simplistic, especially when it comes to representing real-world things that change over time.cite-ref-hickey-61-1[61] Alexander Stepanov said that OOP tries to fit everything into a single type, which can be limiting. He argued that sometimes we need multisorted algebras: families of interfaces that span multiple types, such as in generic programming. Stepanov also said that calling everything an "object" doesn't add much understanding.cite-ref-stepanov-60-1[60]

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────